home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000307_fdc@columbia.edu_Fri Feb 14 10:07:00 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  46 lines

  1. Article: 14103 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Dealing with '\' char in strings of file locations
  6. Date: 14 Feb 2003 10:06:49 -0500
  7. Organization: Columbia University
  8. Lines: 29
  9. Message-ID: <b2j0m9$i09$1@watsol.cc.columbia.edu>
  10. References: <a70f50e.0302121525.7922c8c3@posting.google.com> <a70f50e.0302131451.4fe831f@posting.google.com> <b2h8jd$dp7$1@watsol.cc.columbia.edu> <b2i0it$lfs$1@newsmaster.cc.columbia.edu>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1045235210 3936 128.59.39.139 (14 Feb 2003 15:06:50 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 14 Feb 2003 15:06:50 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14103
  16.  
  17. In article <b2i0it$lfs$1@newsmaster.cc.columbia.edu>,
  18. Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
  19. : The hostname portion of the UNC path must use backslashes.  They cannot be 
  20. : replaced with forward slashes.  When command quoting is ON, you must 
  21. : represent it as
  22. :   \\\\hostname\\dir\\subdir\\file.txt
  23. : or 
  24. :   \\\\hostname\\dir/subdir/file.txt
  25. Right.
  26.  
  27. To clarify: the slash reversal was only to simplify subsequent string
  28. manipulation, in this case extraction of the subdirectory and filename
  29. >from  the UNC.  (Exercise for the reader: try it without reversing the
  30. slashes :-)
  31.  
  32. If you wanted to actually use a UNC you had read from a file (e.g. into
  33. a macro variable called "line"), you would do:
  34.  
  35.   assign unc \freplace(\m(line),\\,\\\\)
  36.  
  37. This would give:
  38.  
  39.   \\\\hostname\\dir\\subdir\\file.txt
  40.  
  41. - Frank
  42.